package com.ruoyi.qualityControl.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum QcTimeExamineReturnGoodSheetEnum
{
    collectDate("collectDate", "统计日期"),
    networkName("networkName", "所属网点"),
    contractArea("contractAreaName", "承包区"),
    frequency("frequency", "频次"),
    centreSentNum("centreSentNum", "中心发件量"),
    examineNum("examineNum", "考核票数"),
    returnGoodTimelyNum("returnGoodTimelyNum", "回货及时量"),
    returnGoodTimelyRate("returnGoodTimelyRate", "回货及时率"),
    returnGoodHoldupNum("returnGoodHoldupNum", "回货滞留量"),
    returnGoodHoldupRate("returnGoodHoldupRate", "回货滞留率"),
    wrongSentNextNetworkNum("wrongSentNextNetworkNum", "错发下一站");

    private final String code;
    private final String info;

    QcTimeExamineReturnGoodSheetEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (QcTimeExamineReturnGoodSheetEnum value : QcTimeExamineReturnGoodSheetEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
